/*
** my_str_isnum.c for  in /home/le_e//project/project_b2/raytracer/init_cnf_file
** 
** Made by canh-kiet le
** Login   <le_e@epitech.net>
** 
** Started on  Sun Apr 29 16:48:30 2012 canh-kiet le
** Last update Mon Apr 30 19:16:35 2012 canh-kiet le
*/

int		my_str_isnum(char *str)
{
  int		i;

  i = 0;
  while (str[i])
    {
      if (!(str[i] >= '0' && str[i] <= '9') && str[i] != '.' && str[i] != ','
	  && str[i] != '-')
	return (0);
      i++;
    }
  return (1);
}
